package com.example.hellosharding.controller;

import com.example.hellosharding.auto.UserInfo;
import com.example.hellosharding.service.IUserInfoService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fan
 * @Date 2021/6/15 9:55
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Resource
    private IUserInfoService iUserInfoService;

    @RequestMapping("/getTest")
    public List<UserInfo> getTest(){
        List<UserInfo> list = iUserInfoService.getList();
        return list;
    }
}
